from src.init.init_db import db
from src.utils.model import BaseModel


class ALikeModel(BaseModel):
    __tablename__ = 'alike'  # 文章点赞表

    aid = db.Column(db.BigInteger, db.ForeignKey('article.aid'), primary_key=True)  # 文章id
    uid = db.Column(db.BigInteger, db.ForeignKey('user.uid'), primary_key=True)  # 用户id
